package com.sinog.front.feign.biz;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.List;
import java.util.Map;

/**
 * @desc 行政区划查询-feign
 * @author -
 * @date -
 */
@FeignClient("sinog2c-biz")
public interface SearchCodeList {

    /**
     * 说明
     * @param codeIds codeIds
     * @return List<String>
     */
    @RequestMapping("/search/code/CodeName")
    List<String> getCodeNames(@RequestParam("codeIds") List<String> codeIds);

    /**
     * 犯罪类型code码查询
     * @param codeType codeType
     * @return List<Map < String,String>>
     */
    @RequestMapping("/yazgl/xjxx/fzlx/code")
    List<Map<String,String>> getCodeList(@RequestParam("codeType") String codeType);

    /**
     * 行政区划代码查询
     * @param codeType codeType
     * @param pcodeId pcodeId
     * @return List<Map < String,String>>
     */
    @RequestMapping("/search/code/native")
    List<Map<String,String>> getCodeNativeList(
            @RequestParam("codeType") String codeType,@RequestParam("pcodeId") String pcodeId);

    /**
     * 街道代码查询
     * @param pcodeId pcodeId
     * @return List<Map < String,String>>
     */
    @RequestMapping("/search/code/jiedao")
    List<Map<String,String>> getCodeJieDaoList(@RequestParam("pcodeId") String pcodeId);

    /**
     * 根据codeid与codetype。查询 tbsys_code 表
     * @param codeType codeType
     * @param codeId codeId
     * @return List<Map < String,String>>
     */
    @RequestMapping("/search/code/bycodeid")
    List<Map<String,String>> getCodeByCodeId(@RequestParam String codeType,@RequestParam String codeId);

    /**
     * 衔接 - 信息录入 - 查询职业技能详情
     * @param codeType codeType
     * @param pcodeId pcodeId
     * @return List<Map < String,String>>
     */
    @RequestMapping("/search/code/zyjn")
    List<Map<String,Object>> echozyjnValue(@RequestParam String codeType,@RequestParam String pcodeId);
}